﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="api.aspx.cs" Inherits="JumbotCms.WebFile.Admin._user_api" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<link type="text/css" rel="stylesheet" href="../../admin/otherpage/styles/common.css" />
<script type="text/javascript" src="../../_data/SysConfig.js"></script>
<script type="text/javascript" src="../../_libs/jquery-min.js"></script>
<script type="text/javascript" src="../../scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="../../style/global.css" />
<link rel="stylesheet" href="../../_libs/jquery.tabs/style.css" type="text/css">
<!--[if lte IE 7]>
<link rel="stylesheet" href="../../_libs/jquery.tabs/style-ie.css" type="text/css">
<![endif]-->
<link type="text/css" rel="stylesheet" href="../../_libs/jquery.formvalidator/style.css" />
<script type="text/javascript" src="../../_libs/jquery.formvalidator.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	ajaxTopNav('1');
	$.formValidator.initConfig({validatorGroup:"1",onError:function(msg){/*alert(msg)*/}});
	$("#txtForumPath").formValidator({validatorGroup:"1",empty:true,tipid:"tipForumPath",onshow:"留空表示不整合",onfocus:"如/bbs/",oncorrect:""}).InputValidator({min:1,onerror:"请输入"});
});
function ajaxTopNav(n)
{
	$("#tab"+n).toggleClass('tabs-selected');
}
function Button1_onclick() {
    return jQuery.formValidator.PageIsValid('1');
}
</script>
</head>
<body>
<form id="form1" runat="server">
	<br />
	<div>
		<div id="ajaxTopNav">
			<ul class="tabs-nav">
				<li id="tab1"><a href="api.aspx"><span>整合接口</span></a></li>
			</ul>
		</div>

		<div class="tabs-container">
			<table class="helptable">
				<tr>
					<td><ul>
							<li>目前只能做到Discuz!NT2.6-3.0的单向整合，即：CMS同步注册/登录/注销论坛。</li>
							<li>若要双向整合需获得Discuz授权，得到修改Discuz源码的许可。</li>
							<li>如果论坛是作为主站的虚拟目录，可直接填写论坛的虚拟路径，如：/bbs/</li>
							<li>如果论坛是同域下的不同子站，则必须填写论坛的物理安装路径，如：E:\wwwroot\bbs\</li>
							<li>需要将Discuz!NT的DNT.config文件拷贝至JumbotCms根目录下。</li>
						</ul></td>
				</tr>
			</table>
			<table class="formtable">
				<tr>
					<th> 论坛安装路径 </th>
					<td><asp:TextBox ID="txtForumPath" runat="server" Width="97%" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipForumPath" style="width:250px"> </div></td>
				</tr>
				<tr>
					<th> 论坛访问地址 </th>
					<td><asp:TextBox ID="txtForumUrl" runat="server" Width="97%" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipForumUrl" style="width:250px"> </div></td>
				</tr>
				<tr style="display:none;">
					<th> 登录页面地址</th>
					<td><asp:TextBox ID="txtLoginUrl" runat="server" Width="97%" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipLoginUrl" style="width:250px"> </div></td>
				</tr>
				<tr style="display:none;">
					<th> 退出页面地址</th>
					<td><asp:TextBox ID="txtLogoutUrl" runat="server" Width="97%" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipLogoutUrl" style="width:250px"> </div></td>
				</tr>
				<tr style="display:none;">
					<th> 注册页面地址</th>
					<td><asp:TextBox ID="txtRegisterUrl" runat="server" Width="97%" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipRegisterUrl" style="width:250px"> </div></td>
				</tr>
			</table>
			<div class="buttonok">
				<asp:Button ID="Button1" OnClientClick="return Button1_onclick()" runat="server" Text="保存" CssClass="btnsubmit" OnClick="Button1_Click" />
			</div>
		</div>
	</div>
</form>
</body>
</html>
